package com.letfox.ad.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.letfox.ad.dao.ADAppDao;
import com.letfox.ad.model.ADApp;
import com.letfox.ad.service.ADAppService;

@Service
public class ADAppServiceImpl implements ADAppService {
	
	@Autowired
	private ADAppDao adAppDao;
	
	@Override
	public int deleteByPrimaryKey(String adAppId) {
		return adAppDao.deleteByPrimaryKey(adAppId);
	}

	@Override
	public int insert(ADApp record) {
		return adAppDao.insert(record);
	}

	@Override
	public ADApp selectByPrimaryKey(String adAppId) {
		return adAppDao.selectByPrimaryKey(adAppId);
	}

	@Override
	public int updateByPrimaryKey(ADApp record) {
		return adAppDao.updateByPrimaryKey(record);
	}

	@Override
	public int checkRequest(String appId, String adPlaceId) {
		return adAppDao.checkRequest(appId, adPlaceId);
	}

	@Override
	public Map<String, String> adTotalCensus(Map<String, String> map) {
		return adAppDao.adTotalCensus(map);
	}

	@Override
	public Map<String, String> queryCensusByDate(Map<String, String> map) {
		return adAppDao.queryCensusByDate(map);
	}

	@Override
	public Map<String, String> queryAmountByDate(Map<String, String> map) {
		return adAppDao.queryAmountByDate(map);
	}

}
